﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SearchFileIformation
{
    public class SearchFileEventArgs : EventArgs
    {
        private ApiObject apiObject = new ApiObject();
        private ApiPositionInformation apiPosition = new ApiPositionInformation();
        private Exception e;
        private int count;
        private string information;
        public SearchFileEventArgs(ApiObject listContent, Exception e, int count, string information)
        {
            this.apiObject = listContent;
            this.e = e;
            this.count = count;
            this.information = information;
        }
        public SearchFileEventArgs(ApiObject listContent, Exception e, int count)
        {
            this.apiObject = listContent;
            this.e = e;
            this.count = count;
        }
        public SearchFileEventArgs(string information)
        {
            this.information = information;
        }
        public SearchFileEventArgs(Exception e)
        {
            this.e = e;
        }
        public SearchFileEventArgs(ApiPositionInformation api)
        {
            this.apiPosition = api;
        }
        public SearchFileEventArgs(ApiPositionInformation api, Exception e)
        {
            this.e = e;
            this.apiPosition = api;
        }
        public SearchFileEventArgs(ApiPositionInformation api, string information)
        {
            this.information = information;
            this.apiPosition = api;
        }
        public ApiObject GetApiContent()
        {
            return apiObject;
        }
        public ApiPositionInformation getApiPositionInformation()
        {
            return apiPosition;
        }
        public Exception GetException()
        {
            return e;
        }
        public int GetCount()
        {
            return count;
        }
        public string GetInformation()
        {
            return information;
        }
    }
}
